package com.mjw.tender.api;

import com.mjw.tender.domain.Comment;
import com.mjw.tender.domain.CommentB;
import com.mjw.tender.dto.CommentDto;
import com.mjw.tender.dto.SecondCommonDto;

import java.util.List;

public interface CommentService {

    /**
     * 新增评论
     * @param comment
     * @return
     */
    public int addComment(Comment comment);

    /**
     * 新增子评论
     * @param commentB
     * @return
     */
    public int addCommentB(CommentB commentB);


    List<Comment> getCommentByArticleId(Long articleId);

    List<CommentB> getCommentBByArticleId(Long articleId);

    List<CommentDto> getCommentDto(Long articleId,Long userId);

    List<SecondCommonDto> SecondCommonDto(Long articleId);

    List<CommentDto> getRecentComment(Integer num);
}
